package com.java.service.impl;

import com.java.entity.Blogger;
import com.java.mapper.BloggerMapper;
import com.java.service.BloggerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 博客Service接口
 * @author Administrator
 *
 */
@Service("bloggerService")
public class BloggerServiceImpl implements BloggerService {

    @Resource
    private BloggerMapper bloggerMapper;
    @Override
    public Blogger getUserName(String userName) {
        return bloggerMapper.getByUserName(userName);
    }


    @Override
    public Blogger getBlogger() {
        return bloggerMapper.getBlogger();
    }
}
